﻿<Window x:Class="P2.Cuberry.Modules.SimpleAccounting.HREmployee.HREmployeesDetailsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:basec="clr-namespace:P2.Cuberry.Framework.Helper;assembly=P2.Cuberry.Framework.Helper" 
        
        Icon="/P2.Cuberry;component/Images/CuberryIcon32.ico"
        Title="Peacequare Cuberry" Width="920" Height="480"  
        Background="{DynamicResource P2BackgroundBrush}" 
        Closing="Window_Closing"
        >

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.Resources>
            <Image x:Key="SaveIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HREmployee;component/Images/save.png" />
            <Image x:Key="CancelIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HREmployee;component/Images/cancel.png" />
            <Image x:Key="ClosingIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HREmployee;component/Images/save.png" />

            <Image x:Key="Printer2Icon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HREmployee;component/Images/printer2.png" />


        </Grid.Resources>


        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="35" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>

        <!-- Row 0 Start -->
        <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Content="{Translate DialogHeaderHREmployeesDetails}" Style="{StaticResource P2DetailViewHeaderTextStyle}" />
        
        <Separator Margin="0,0,0,0" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Bottom" Height="0"/>
        <!-- Row 0 End -->

        <!-- Row 1: Menu Start -->
        <Border  Grid.Row="1" Grid.Column="0"  Style="{StaticResource P2MenuBorderStyle}">
            <Grid>
            <Menu Grid.Row="1" x:Name="menuMain" Style="{StaticResource P2MenuStyle}" >
                <MenuItem x:Name="SaveBtn" Margin="2,1,0,2"  InputGestureText="Ctrl+S" Header="{Translate SaveBtn}" Command="{Binding HREmployeeSaveCommand}"  Icon="{StaticResource SaveIcon}" Style="{StaticResource P2MenuItemStyle}" />
                <MenuItem x:Name="CloseBtn" Margin="2,1,0,2" InputGestureText="Ctrl+X" Header="{Translate SaveAndCloseBtn}" Command="{Binding HREmployeeCloseCommand}" Icon="{StaticResource CancelIcon}" Style="{StaticResource P2MenuItemStyle}"/>

                <MenuItem x:Name="PrintBtn" Margin="2,1,0,2" Header="{Translate PrintBtn}" Command="{Binding HREmployeePrintCommand}" Icon="{StaticResource Printer2Icon}" Style="{StaticResource P2MenuItemStyle}"/>

                </Menu>
                <Menu Grid.Row="1" HorizontalAlignment="Right" x:Name="menuMainRight" Style="{StaticResource P2MenuStyle}" >
                    <MenuItem x:Name="HistoryBtn" Command="{Binding HistoryCommand}"  Style="{StaticResource P2MenuItemStyleHistory}"/>
                    <MenuItem x:Name="InfoBtn" Command="{Binding InfoCommand}"  Style="{StaticResource P2MenuItemStyleInfo}"/>
                </Menu>
            </Grid>
        </Border>


        <!-- Row 1 End -->

        <!-- Row 2: All Fields -->
        <Border  Grid.Row="2" Grid.Column="0"  Style="{StaticResource P2ContentBorderStyle}">
            <Grid Grid.Row="2" Grid.Column="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="604*"/>
                    <ColumnDefinition Width="0*" />
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <Label Margin="22,4,0,0" Content="{Translate TitleIDL}"  Name="TitleIDL" Height="27.723" VerticalAlignment="Top" />
                <ComboBox Margin="22,25,614,0" DisplayMemberPath="PersonTitleCur" Name="TitleID" SelectedValuePath="TitleID" SelectedValue="{Binding TitleID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding PersonTitles}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23.723" VerticalAlignment="Top" />
 

                <Label Margin="23,49,0,0" Name="FirstNameEnL" Height="28" VerticalAlignment="Top" Content="{Translate FirstNameEnL}" HorizontalAlignment="Left" Width="120"></Label>
                <TextBox Margin="23,70,0,0" Name="FirstNameEn" Height="23" Text="{Binding FirstNameEn, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Style="{StaticResource P2TextBoxStyle}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="247.47" />
                
                <Label Content="{Translate MiddleNameEnL}" Height="28" HorizontalAlignment="Left" Margin="23,91,0,0" Name="MiddleNameEnL" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="23,113,0,0" Name="MiddleNameEn" Style="{StaticResource P2TextBoxStyle}" Text="{Binding MiddleNameEn, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" Width="247.47" />
                
                <Label Content="{Translate LastNameEnL}" Height="28" HorizontalAlignment="Left" Margin="23,134,0,0" Name="LastNameEnL" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="23,155,0,0" Name="LastNameEn" Style="{StaticResource P2TextBoxStyle}" Text="{Binding LastNameEn, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" Width="247.47" />
                <Label Content="{Translate FirstNameArL}" HorizontalAlignment="Left" Margin="23,180,0,0" Name="FirstNameArL" Width="120" Height="28" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="23,201,0,0" Name="FirstNameAr" Style="{StaticResource P2TextBoxStyle}" Text="{Binding FirstNameAr, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" Width="247.47" />
                <Label Content="{Translate MiddleNameArL}" Height="28" HorizontalAlignment="Left" Margin="22.47,222,0,0" Name="MiddleNameArL" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="22,244,0,0" Name="MiddleNameAr" Style="{StaticResource P2TextBoxStyle}" Text="{Binding MiddleNameAr, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" Width="247.47" />
                <Label Content="{Translate LastNameArL}" Height="28" HorizontalAlignment="Left" Margin="22.47,265,0,0" Name="LastNameArL" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="22,286,0,0" Name="LastNameAr" Style="{StaticResource P2TextBoxStyle}" Text="{Binding LastNameAr, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" Width="247.47" />
                
                <TabControl Margin="341,3,3,3" Name="tabControl1" MinWidth="540" BorderBrush="{DynamicResource P2BackgroundBrush}" Height="317" Width="540">
                    <TabItem Header="{Translate AddressTab}" Name="AddressTab" Background="White" >
                        <Grid  Background="White">                            
                            
                            <Label Margin="10,10,0,0" Name="StreetL" Height="28" VerticalAlignment="Top" Content="{Translate StreetL}" HorizontalAlignment="Left" Width="120"></Label>
                            <TextBox Margin="10,31,173,0" Name="Street" Height="23" Text="{Binding Street, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Style="{StaticResource P2TextBoxStyle}" VerticalAlignment="Top" />

                            <Label Margin="10,54,0,0" Content="{Translate ZIPCodeL}" HorizontalAlignment="Left"  Name="ZIPCodeL" Width="120" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,75,0,0" Name="ZIPCode" Style="{StaticResource P2TextBoxStyle}" Text="{Binding ZIPCode, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="120" Height="22.723" VerticalAlignment="Top" />
                            
                            <Label Margin="159,54,251,0" Content="{Translate CityL}" Name="CityL" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="159,75,175,0" Name="City" Style="{StaticResource P2TextBoxStyle}" Text="{Binding City, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="22.723" VerticalAlignment="Top" />

                            <Label Margin="159,93,264.53,0" Content="{Translate CountryIDL}"  Name="CountryIDL" Height="27.723" VerticalAlignment="Top" />
                            <ComboBox Margin="159,113,173,0" DisplayMemberPath="CountryNameCur" Name="CountryID" SelectedValuePath="CountryID" SelectedValue="{Binding CountryID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding Countries}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23.723" VerticalAlignment="Top" />

                            <Label Margin="10,96,0,0" Content="{Translate EMailL}" HorizontalAlignment="Left"  Name="EMailL" Width="120" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,117,0,0" Name="EMail" Style="{StaticResource P2TextBoxStyle}" Text="{Binding EMail, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="120" Height="22.723" VerticalAlignment="Top" />

                            <Label Margin="10,147,0,0" Content="{Translate PhoneMobileL}" HorizontalAlignment="Left"  Name="PhoneMobileL" Width="120" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,168,0,0" Name="PhoneMobile" Style="{StaticResource P2TextBoxStyle}" Text="{Binding PhoneMobile, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="120" Height="22.723" VerticalAlignment="Top" />

                            <Label Margin="159,147,251,0" Content="{Translate PhoneHomeL}" Name="PhoneHomeL" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="159,168,170,0" Name="PhoneHome" Style="{StaticResource P2TextBoxStyle}" Text="{Binding PhoneHome, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="22.723" VerticalAlignment="Top" />

                            <Label Margin="10,210,0,0" Content="{Translate PhoneExtensionL}" HorizontalAlignment="Left"  Name="PhoneExtensionL" Width="120" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,231,0,0" Name="PhoneExtension" Style="{StaticResource P2TextBoxStyle}" Text="{Binding PhoneExtension, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="120" Height="22.723" VerticalAlignment="Top" />


                        </Grid>
                    </TabItem>
                    <TabItem Header="{Translate EmploymentTab}" Name="EmploymentTab" Background="White" >                    
                        <Grid  Background="White" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="200*" />
                                <ColumnDefinition Width="330*" />
                            </Grid.ColumnDefinitions>
                            <Label Margin="10,9,0,0" Content="{Translate DepartmentIDL}"  Name="DepartmentIDL" Height="27.723" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                            <ComboBox Margin="13,29,0,0" DisplayMemberPath="DepartmentNameCur" Name="DepartmentID" SelectedValuePath="DepartmentID" SelectedValue="{Binding DepartmentID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding Departments}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23.723" VerticalAlignment="Top" HorizontalAlignment="Left" Width="280" Grid.ColumnSpan="2" />

                            <Label Name="EmploymentEndDateL" Content="{Translate EmploymentEndDateL}" Margin="159,166,0,0" Height="28" VerticalAlignment="Top" Grid.ColumnSpan="2" HorizontalAlignment="Left" Width="131" />                            
                            <DatePicker Name="EmploymentEndDate" Margin="163,186,0,0" SelectedDate="{Binding EmploymentEndDate, Mode=TwoWay}" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" Height="24" VerticalAlignment="Top" HorizontalAlignment="Left" Width="122" Grid.ColumnSpan="2" />
                            <Label Content="{Translate EmploymentStartDateL}" HorizontalAlignment="Left" Margin="10,166,0,0" Name="EmploymentStartDateL" Width="147" Height="28" VerticalAlignment="Top" />
                            <DatePicker HorizontalAlignment="Left" Margin="13,186,0,0" Name="EmploymentStartDate" SelectedDate="{Binding EmploymentStartDate, Mode=TwoWay}" Width="106.47" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" Height="24" VerticalAlignment="Top" />

                           
                            <Label Margin="10,103,64,0" Content="{Translate PositionL}" Name="PositionL" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,124,240,0" Name="Position" Style="{StaticResource P2TextBoxStyle}" Text="{Binding Position, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="22.723" VerticalAlignment="Top" Grid.ColumnSpan="2" />

                            <Label Margin="10,56,0,0" Content="{Translate JobTitleL}" HorizontalAlignment="Left"  Name="JobTitleL" Width="120" Height="27.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,77,0,0" Name="JobTitle" Style="{StaticResource P2TextBoxStyle}" Text="{Binding JobTitle, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="280" Height="22.723" VerticalAlignment="Top" Grid.ColumnSpan="2" />


                            <Label Margin="10,222,237,0" Content="{Translate HRPayrollTemplateHeaderIDL}"  Name="HRPayrollTemplateHeaderIDL" Height="27.723" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                            <ComboBox Margin="10,243,0,0" DisplayMemberPath="TemplateName" Name="HRPayrollTemplateHeaderID" SelectedValuePath="HRPayrollTemplateHeaderID" SelectedValue="{Binding HRPayrollTemplateHeaderID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding HRPayrollTemplates}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23.723" VerticalAlignment="Top" HorizontalAlignment="Left" Width="280" Grid.ColumnSpan="2" />

                        </Grid  >                        
                    </TabItem>

                    <TabItem Header="{Translate PersonalInfoTab}" Name="PersonalInfoTab" Background="White" >
                        <Grid  Background="White">
                            <Label Margin="10,188,0,0" HorizontalAlignment="Left" Name="NoteL" Content="{Translate NoteL}" Width="120" Height="22.723" VerticalAlignment="Top" />
                            <TextBox Margin="10,209,5,0" Name="Note" VerticalScrollBarVisibility="Auto" Style="{StaticResource P2TextBoxStyle}"
                         Text="{Binding Note , ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"
                         IsReadOnly="{Binding IsReadOnly}" Height="70" VerticalAlignment="Top" />

                            <Label Margin="13,75,0,0" Content="{Translate GenderIDL}"  Name="GenderIDL" HorizontalAlignment="Left" Width="109.47" Height="27.723" VerticalAlignment="Top" />
                            <ComboBox Margin="13,95,0,0" DisplayMemberPath="GenderCur" Name="GenderID" SelectedValuePath="GenderID" SelectedValue="{Binding GenderID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding Genders}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="107" Height="23.723" VerticalAlignment="Top" />
                            
                            <Label Margin="0,75,267,0" Content="{Translate MaritalStatusIDL}"  Name="MaritalStatusIDL" HorizontalAlignment="Right" Width="109.47" Height="27.723" VerticalAlignment="Top" />
                            <ComboBox Margin="154,95,0,0" DisplayMemberPath="MaritalStatusCur" Name="MaritalStatusID" SelectedValuePath="MaritalStatusID" SelectedValue="{Binding MaritalStatusID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding MaritalStatuss}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="107" Height="23.723" VerticalAlignment="Top" />

                            <Label Margin="407,75,0,0" Content="{Translate ReligionIDL}"  Name="ReligionIDL" HorizontalAlignment="Left" Width="109.47" Height="27.723" VerticalAlignment="Top" />
                            <ComboBox Margin="407,95,0,0" DisplayMemberPath="ReligionCur" Name="ReligionID" SelectedValuePath="ReligionID" SelectedValue="{Binding ReligionID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding Religions}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="107" Height="23.723" VerticalAlignment="Top" />

                            <Label Margin="13,134,0,0" Content="{Translate NationalityIDL}"  Name="NationalityIDL" HorizontalAlignment="Left" Width="109.47" Height="27.723" VerticalAlignment="Top" />
                            <ComboBox Margin="13,154,0,0" DisplayMemberPath="CountryNameCur" Name="NationalityID" SelectedValuePath="CountryID" SelectedValue="{Binding NationalityID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}"   
                                      ItemsSource="{Binding Countries}"
                                      IsEnabled="{Binding IsEditable}"
                                      Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" HorizontalAlignment="Left" Width="248" Height="23.723" VerticalAlignment="Top" />


                            <Label Margin="281,75,0,0" Name="DateOfBirthL" Content="{Translate DateOfBirthL}" HorizontalAlignment="Left" Width="120" Height="27.723" VerticalAlignment="Top"></Label>
                            <DatePicker Margin="284,95,0,0" Name="DateOfBirth" SelectedDate="{Binding DateOfBirth, Mode=TwoWay}" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" HorizontalAlignment="Left" Width="107" Height="23.723" VerticalAlignment="Top" />

                            <Label Margin="0,19,397,0" Content="{Translate InsuranceNoL}" HorizontalAlignment="Right"  Name="InsuranceNoL" Width="120" Height="28" VerticalAlignment="Top" />
                            <TextBox Margin="13,40,0,0" Name="InsuranceNo" Style="{StaticResource P2TextBoxStyle}" Text="{Binding InsuranceNo, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="248" />

                            <Label Margin="284,19,126,0" Content="{Translate PersonalIDNoL}" Name="PersonalIDNoL" Height="28" VerticalAlignment="Top" />
                            <TextBox Margin="284,40,5,0" Name="PersonalIDNo" Style="{StaticResource P2TextBoxStyle}" Text="{Binding PersonalIDNo, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" Height="23" VerticalAlignment="Top" />

                        </Grid  >
                    </TabItem>
                    
                </TabControl>
            </Grid>
        </Border>

        <!-- Row 2: End -->


        <!-- Row 3: Bottom: Status Bar Start -->
        <Border Grid.Row="3" Grid.Column="0" Style="{StaticResource P2StatusStripBorderStyle}" >
            <Grid Grid.Row="3" Grid.Column="0" Style="{StaticResource P2StatusStripGridStyle}">
                <basec:P2StatusStrip x:Name="StatusStrip" MessageStack2="{Binding MessageStack}"  Grid.Column="0" Grid.Row="3" Height="Auto" Width="Auto" Background="White" HorizontalAlignment="Left" ContentStringFormat=""></basec:P2StatusStrip>
                <TextBox Name="Status" Grid.Column="0" Grid.Row="3" Height="Auto" Width="Auto" Background="White" HorizontalAlignment="Right" Text="{Binding StatusName, Mode=OneWay}" IsReadOnly="True" BorderBrush="Transparent" />
            </Grid>
        </Border>

        <!-- Row 3: End -->
    </Grid>
</Window>
